<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: view-smoothbox.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>
  
<?php
	$this->headScript()
    ->appendFile( $this->baseUrl() . '/application/modules/Kowcore/externals/scripts/audio-player.js')
		->appendFile( $this->baseUrl() . '/application/modules/Kowcore/externals/scripts/audio-player-noswfobject.js')
		->appendFile( $this->baseUrl() . '/application/modules/Kowcore/externals/scripts/audio-player-uncompressed.js');
?>

<script type="text/javascript">
  en4.core.runonce.add(function() {
    AudioPlayer.setup("<?php echo $this->baseUrl(); ?>/application/modules/Kowcore/externals/scripts/player.swf", {
      width: 200,
      initialvolume: 100,
      transparentpagebg: "yes",
      left: "000000",
      lefticon: "FFFFFF"
    });
    
    AudioPlayer.embed("participant_<?php echo $this->participant->getIdentity(); ?>", {soundFile: "<?php echo $this->storage->get($this->participant->file_id)->map(); ?>", titles: "<?php echo $this->participant->getTitle(); ?>"});
  });
</script>
  
<div class="vote_photo_participant">
  <div>
    <div>
      
      <?php if ($this->participant->photo_id): ?>
      <div class="artwork">
        <?php echo  $this->itemPhoto($this->participant, ''); ?>
      </div>
      <?php endif; ?>

      <div class="song">
        <div id="participant_<?php echo $this->participant->getIdentity(); ?>"></div>
      </div>

    </div>
    
    <div class="ratings">
      <?php echo $this->objectRate($this->participant, $this->canVote); ?>
    </div>
    
  </div>
</div>